package com.wf.netty.coder;

import com.wf.netty.base.MyServerChannelHandler;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * 功能描述
 *
 * @author wf
 * @since 2022/5/11
 */
public class MyToIntegerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().addLast(new MyToIntegerReplayingDecoder());
        ch.pipeline().addLast(new MyServerChannelHandler());
    }
}
